package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.R;
import com.example.domain.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestBody;


/**
* @author Administrator
* @description 针对表【employee(员工信息)】的数据库操作Service
* @createDate 2022-04-28 09:38:13
*/
public interface EmployeeService extends IService<Employee> {
    /**
     * 登录判断
     * @param employee 需要登录的用户
     * @return
     */
    R login(Employee employee);

    /**
     * 添加员工
     * @param employee 需要添加的员工
     * @return
     */
    boolean addEmployee(Employee employee);

    /**
     * 按照分页获取员工信息
     * @return
     */
    IPage<Employee> getEmployeeListForPage(Integer page, Integer pageSize, String name);

    /**
     * 更新员工
     * @return
     */
    boolean updateEmployee(Employee employee);
}
